package thread;

public class ThreadCreateCompare {
    public static void main(String[] args) {

    }

    static class Counter {
        private int count = 0;

        public void increment() {
            count++;
        }

        public int value() {
            return count;
        }
    }

    static class CountingTask implements Runnable {
        private Counter counter = new Counter();

        @Override
        public void run() {

        }

        private void doSomething() throws  Exception{
            Tools.randomPause(80);
        }
    }
}
